/**
 * Created by Administrator on 2015/9/28 0028.
 */
$(document).ready (function(){
    var tra = {
        change2:$("#main-img-2"),
        change1:$("#main-img-1"),
        change3:$("#main-in-1"),
        shadow:$("main-in"),
        change: function () {
            tra.change2.css("-webkit-transform","rotateY(180deg)","transform","rotateY(180deg)")
            tra.change1.css("-webkit-transform","rotateY(-180deg)","transform","rotateY(-180deg)")
            tra.change2.css("-webkit-backface-visibility","hidden")
        },
        rchange: function(){
            tra.change2.css("-webkit-transform","rotateY(-180deg)","transform","rotateY(-180deg)")
            tra.change1.css("-webkit-transform","rotateY(180deg)","transform","rotateY(180deg)")
            tra.change2.css("-webkit-backface-visibility","visible")

        },
        ready:function() {
            tra.change3.mouseenter(tra.change);
            tra.change3.mouseleave(tra.rchange)
        }
        };
    tra.ready();
    return window.tra = tra;
});